package openadmin.controller.gwt.beaninfo;

import java.io.Serializable;


/**
 * <desc> Field Info: Information about a field 
 *        as in the client, we cannot use reflection 
 * 
 * In order to simplify programming, all the attributes have been declared "public"
 * @author edu
 *
 */

public class FieldInfo implements Serializable{
	
	private static final long serialVersionUID = 1L; // To avoid complier warnings
	
	public String fieldDescription;			// i18n description of the detail, collection, set etc
	public String fieldName;				// Field or attribute name
	public String fieldType;				// Field type (int, String, openadmin.dao.control.access, etc)
	
	public String mask; 					// Edition mask of the field
	public String editor;					// Editor or control to use to modify data
	
	public String defaultValue;				// default value in a new element
	
	public String max;						// Max value the parameter can achieve
	public String min; 						// Minimum value the parameter can achieve
	
	public boolean nullable; 				// If it can get a null value
	public boolean enabled;					// If enabled 
	public boolean hidden;					// if the field is hidden
	
	public int minLen;						// minimum length of the field
	public int maxLen;						// max length of the field
	
	public String style;					// A CSS style 
	

	public String[] listValues; 			// Used only in a checkBox control to show only allowed values
	public String HQL;						// A HQL String for usually retrieving id + description 
	
}
